<?php include "htmlBase/header.php"; ?>

<?php
include_once 'Entidades/EntidadeBase.php';
include_once 'Entidades/Responsavel.php';
$servicoResponsavel = new Responsavel();
$Responsavel = $servicoResponsavel->ObterPorId($_GET["Id"]);
?>

<div class="page secondary">
    <div class="page-header">
        <div class="page-header-content">
            <h1><?php echo $Responsavel->Nome; ?> <small>(Painel)</small></h1>
            <a href="ResponsavelPesquisa.php" class="back-button big page-back"></a>
        </div>
        <div class="progress-bar" align="rigth">
            <div class="bar bg-color-blue" style="width: 75%"></div>
        </div>
    </div>
    <br/>
    <div class="page">
        <div class="page-region">
            <div class="page-region-content">

                <div class="tiles clearfix">
                    <h3>Cadastro Família</h3>
                    <a href="ResponsavelCadastro.php?Id=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double-vertical bg-color-blueDark">
                            <div class="tile-content">
                                <img src="imagens/appbar.user.tie.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Responsável</div>
                            </div>
                        </div>
                    </a>

                    <a href="ComposicaoFamiliarPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile double icon bg-color-blueDark">
                            <div class="tile-content">
                                <img src="imagens/appbar.group.png"/>
                                <div style="text-align: right; margin-top: 3px; margin-right: 7px;"><h4><?php echo $Responsavel->getQuantidadePessoasFamilia(); ?></h4></div>
                            </div>
                            <div class="brand">
                                <div class="name">Composição Familiar</div>
                            </div>
                        </div>
                    </a>

                    <a href="SituacaoHabitacionalCadastro.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon bg-color-blue">
                            <div class="tile-content">
                                <img src="imagens/appbar.places.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Situação Habitacional</div>
                            </div>
                        </div>
                    </a>

                    <a href="ProgramaBeneficioPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon bg-color-green">
                            <div class="tile-content">
                                <img src="imagens/appbar.clipboard.edit.png"/>
                                <div style="text-align: right; margin-top: 3px; margin-right: 7px;"><h4><?php echo $Responsavel->getQuantidadeProgramasBeneficios(); ?></h4></div>
                            </div>
                            <div class="brand">
                                <div class="name">Programas e Benefícios</div>

                            </div>
                        </div>
                    </a>

                    <a href="DespesasPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon bg-color-green">

                            <div class="tile-content">
                                <img src="imagens/appbar.money.png"/>
                                <div style="text-align: right; margin-top: 3px; margin-right: 7px;"><h4><?php echo $Responsavel->getQuantidadeDespesas(); ?></h4></div>
                            </div>
                            <div class="brand">
                                <div class="name">Situação Econômica</div>
                            </div>
                        </div>
                    </a>

                    <a href="SaudeCadastro.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon bg-color-blue">
                            <div class="tile-content">
                                <img src="imagens/appbar.heart.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Saúde</div>
                            </div>
                        </div>
                    </a>

                    <a href="ObservacaoCadastro.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double bg-color-green">
                            <div class="tile-content">
                                <img src="imagens/appbar.align.left.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Observações</div>
                            </div>
                        </div>
                    </a>
                </div>  

                <h3>Plano de Ação</h3>
                <div class="tiles clearfix">
                    <a href="PlanoDeAcaoPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double-vertical bg-color-green">
                            <div class="tile-content">
                                <img src="imagens/appbar.book.open.writing.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Plano De Ação</div>
                            </div>
                        </div>
                    </a>

                    <a href="VulnerabilidadePesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double bg-color-green">
                            <div class="tile-content">
                                <img src="imagens/appbar.heartbreak.png"/>
                                <div style="text-align: right; margin-top: 3px; margin-right: 7px;"><h4><?php echo $Responsavel->getQuantidadeVulnerabilidades(); ?></h4></div>
                            </div>
                            <div class="brand">
                                <div class="name">Vulnerabilidades</div>
                            </div>
                        </div>
                    </a>

                    <a href="AnaliseDiagnosticaPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon bg-color-blueDark double">
                            <div class="tile-content">
                                <img src="imagens/appbar.page.edit.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Análise Diagnóstica</div>
                            </div>
                        </div>
                    </a>

                    <a href="ObjetivoEstrategiaPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double bg-color-blue">
                            <div class="tile-content">
                                <img src="imagens/appbar.checkmark.pencil.top.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Objetivo e Estratégia Central da Intervenção</div>
                            </div>
                        </div>
                    </a>

                    <a href="ResultadoEsperadoPesquisa.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double bg-color-blueDark">
                            <div class="tile-content">
                                <img src="imagens/appbar.clipboard.file.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Resultados Esperados/Obtidos</div>
                            </div>
                        </div>
                    </a>
                </div>

                <h3>Relatórios</h3>
                <div class="tiles clearfix">
                    <a href="Relatorio/Responsavel.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon bg-color-blueDark">
                            <div class="tile-content">
                                <img src="imagens/appbar.user.tie.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Responsável</div>
                            </div>
                        </div>
                    </a>

                    <a href="Relatorio/FormularioPlanoDeAcao.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double bg-color-green">
                            <div class="tile-content">
                                <img src="imagens/appbar.book.open.writing.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Formulário Plano de Ação</div>
                            </div>
                        </div>
                    </a>

                    <a href="Relatorio/FormularioPlanoDeAcaoFamilia.php?id_Responsavel=<?php echo $Responsavel->Id; ?>">
                        <div class="tile icon double bg-color-green">
                            <div class="tile-content">
                                <img src="imagens/appbar.book.open.writing.png"/>
                            </div>
                            <div class="brand">
                                <div class="name">Formulário Plano de Ação Família</div>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
        </div>
    </div>

</div>

<?php include "htmlBase/footer.php"; ?>